checkLogin()
function checkLogin(){
    let login=sessionStorage.getItem("login");
    if(login != 1){
        window.alert("请先登录!");
        location.href='../html/login.html';
        return
    }
}